
<form class="form-horizontal css-form" ng-submit="submit()" style="width:80%;margin:0 auto;">
	<div style="width:100%;float:left;">
		<div style="width:45%;margin:0 auto;float:left;">
			<div class="title">基本信息</div>
			<!-- 姓名 -->
			<div class="student_add_info">
				<label>姓名：</label>
			    <div class="input_box">
					<input type="text" ng-model="teacher.name" placeholder="" required>     
			    </div>
			</div>
			<!-- 选择性别 -->
		    <div class="student_add_info">
		    	<label>性别:</label>
		    	<div class="sex">
		    		<input type="radio" name="sex" value="0" ng-model="teacher.sex" required>
		    		男
					<input type="radio" name="sex" value="1" ng-model="teacher.sex" style="margin-left:20px;" required> 
					女
		    	</div>	     
		    </div>

			<!-- 输入电话-->
			<div class="student_add_info">
				<label>电话：</label>
			    <div class="input_box">
					<input type="text" ng-model="teacher.tel" placeholder="" required>     
			    </div>
			</div>
			<!-- 输入身份证号-->
			<div class="student_add_info">
				<label>身份证号：</label>
			    <div class="input_box">
					<input type="text" ng-model="teacher.nativeid" placeholder="" required>     
			    </div>
			</div>
			<!-- 输入备注信息-->
			<div class="student_add_info" style="height:auto;">
				<label>备注：</label>
			    <div>
					<textarea type="text" ng-model="teacher.content" class="form-control ng-pristine ng-valid" placeholder="请填写"></textarea>    
			    </div>
			</div>
		</div>

		<div style="width:45%;margin:0 auto;float:right">
			<div class="title">教务信息</div>
			<!-- 选择老师 -->
			<div class="student_add_info">
				<label>授课内容：</label>
			    <select  class="select_box" ng-change="update()" ng-model="teacher.subject_id" ng-options="item.id as item.name for item in classes" required> 
				</select>
			</div>
			<!-- 添加新课程 -->
			<div class="student_add_info" id="class_new">
				<label>新课程：</label>
			    <div class="input-group">
	                <input type="text" class="form-control" ng-model="classNew" placeholder="课程名称">
	                <span class="input-group-addon" ng-click="submit2()" style="cursor:pointer">添加</span>
	            </div>
			</div>
		</div>
	</div>
	<div style="margin:20px 0;width:45%;float:right;">
		<a class="btn btn-large btn-primary" href="#/teachers" style="width:45%;margin:0 auto;display:inline-block;">
			取消
		</a>
		
		<button style="width:45%;margin:0 auto;display:inline-block;float:right;" type="submit" class="btn btn-large btn-primary" >提交</button>
	</div>
</form>